<template>
    <div class="none">
        <div class="none_card">
            <img src="@/assets/nodata.png" :style="`width: ${size}px;height: ${size}px`" alt="">
            <div class="text">暂无数据</div>
        </div>
    </div>
</template>

<script setup>
const props = defineProps({
    size: Number
})
</script>

<style lang="scss" scoped>
.none {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.none_card {
    display: flex;
    flex-direction: column;
    align-items: center;

    .text {
        margin-top: 16px;
        font-size: 14px;
        color: #b5b5b5;
    }
}
</style>